//
//  TravelTableViewCell.m
//  mafengwo
//
//  Created by Mac on 16/4/14.
//  Copyright © 2016年 Mac. All rights reserved.
//

#import "TravelTableViewCell.h"

@implementation TravelTableViewCell

#pragma -mark 重写setModel对自己的属性复制

-(void)setCommentsModel:(CommentsModel *)commentsModel{

    _commentsModel = commentsModel;

//    @property (strong, nonatomic) IBOutlet UILabel *user;
//
//    @property (strong, nonatomic) IBOutlet UILabel *lv;
//    @property (strong, nonatomic) IBOutlet UILabel *sendTime;
//    @property (strong, nonatomic) IBOutlet UIButton *location;
//    @property (strong, nonatomic) IBOutlet UIButton *coor;
//    @property (strong, nonatomic) IBOutlet UIButton *comments;
//    @property (strong, nonatomic) IBOutlet UILabel *topic;
    self.user.text = commentsModel.user;
    self.lv.text = commentsModel.lv;
    self.sendTime.text = commentsModel.time;
    [self.location setTitle:commentsModel.location forState:UIControlStateNormal];
    [self.coor setTitle:commentsModel.coordinates forState:UIControlStateNormal];
    NSString *string = [NSString stringWithFormat:@"附近有%@条>",commentsModel.comments];
    [self.comments setTitle:string forState:UIControlStateNormal];
    self.topic.text = commentsModel.topic;
    
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
